package com.woniu.darryringmall.front.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniu.darryringmall.front.entity.ActivitySpec;
import com.woniu.darryringmall.front.mapper.ActivitySpecMapper;
import com.woniu.darryringmall.front.service.ActivitySpecService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 活动中间表Service接口实现类
 */
@Service
public class ActivitySpecServiceImpl extends ServiceImpl<ActivitySpecMapper, ActivitySpec> implements ActivitySpecService {
    @Autowired
    private ActivitySpecMapper activitySpecMapper;

    @Override
    public void add(ActivitySpec activitySpec) {
        activitySpecMapper.insert(activitySpec);
    }

    @Override
    public void delete(int activityId, int userId) {
        activitySpecMapper.delete(activityId,userId);
    }
}
